package com.yidu.hbats.service.TrainingPlan;

import com.yidu.hbats.action.vo.AtsPlanWeekvo;
import com.yidu.hbats.model.AtsPlanPhase;
import com.yidu.hbats.model.AtsPlanWeek;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 朱星润
 * @类的描述——
 * @versing 1.0 2019/10/30
 */
public interface AtsPlanWeekService {
    /**
     * 分页
     *
     * @return
     */
    int count(HttpServletRequest request, AtsPlanWeek atsPlanWeek);
    /**
     * 根据指定方案创建人查
     * @param creater
     * @return
     */
    List<AtsPlanWeek> findIdTwo(String creater);

    /**
     * 修改是否有效
     *
     * @param atsPlanWeek
     * @return
     */
    int updateIsva(AtsPlanWeek atsPlanWeek);
    int delAll(String id);

    /**
     * 查询所有
     *
     * @return
     */
    List<AtsPlanWeek> selectAll(HttpServletRequest request, AtsPlanWeek atsPlanWeek, Integer pageNum, Integer pageSize);

    /**
     * @mbg.generated 2019-10-29
     */
    void insertSelective(AtsPlanWeekvo record);

    /**
     * 修改
     * @param atsPlanWeek
     */
    void update(AtsPlanWeekvo atsPlanWeek);
    /**
     * @mbg.generated 2019-10-29
     */
    AtsPlanWeek selectByPrimaryKey(Integer weekId);
    /**
     * 查询所有
     *
     * @return
     */
    List<AtsPlanWeek> selectAll(AtsPlanWeek atsPlanWeek);
    AtsPlanWeek findMaxPid(int coachId);
}
